package com.imooc.bilibili.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * @author xiexu
 * @create 2022-07-07 09:23
 */
@Configuration
public class WebSocketConfig {

    /**
     * 用来发现 WebSocket 服务的
     *
     * @return
     */
    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }

}
